<extend name="Public/base" />

        <block name="body">
            <!-- 标题栏 -->
            <div class="main-title">
                <h2>工作列表 [{$type.type}]</h2>
            </div>
            <div class="cf">
                <div class="fl">
                    <a class="btn" href="{:U('nameAdd?tid='.$type['id'])}">添加</a>
                </div>
            </div>
            <!-- 数据列表 -->
            <div class="data-table table-striped">
                <table class="">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>工作名称</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <notempty name="result"> <volist name="result" id="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.name}</td>
                            <td>
                                <a href="{:U('Work/nameEdit?id='.$vo['id'].'&tid='.$type['id'])}">编辑</a>
                                <a href="{:U('Work/nameDelete?id='.$vo['id'].'&tid='.$type['id'])}" class="confirm ajax-get">删除</a>
                            </td>
                        </tr>
                    </volist> <else />
                        <td colspan="4" class="text-center">aOh! 暂时还没有内容!</td>
                    </notempty>
                    </tbody>
                </table>
            </div>
            <div class="page">{$_page}</div>
        </block>


<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Work/type')}');
    </script>
</block>